/**
 * Copyright (c) 2009  Collaborative Development Group, C.S. Dept., University of Bari
 *
 * All rights reserved. This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License v1.0  which accompanies this distribution, and is 
 * available at http://www.eclipse.org/legal/epl-v10.html
 */
package it.uniba.di.cdg.jtalk.ui;

import it.uniba.di.cdg.jtalk.ui.contacts.ContactView;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

/**
 * Defines the initial perspective of the application, typically presenting just the Contact View.
 */
public class ChatPerspective implements IPerspectiveFactory {
	public static final String PERSPECTIVE_ID = "it.uniba.di.cdg.jtalk.ui.ChatPerspective";
	
	/* (non-Javadoc)
	 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
	 */
	public void createInitialLayout( IPageLayout layout ) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible( false );
		layout.setFixed( true );

		layout.addStandaloneView( ContactView.VIEW_ID, false, IPageLayout.LEFT, 1.0f, editorArea );
	}
}
